<?php
require_once("../includes/config.php");
//include DIR_INCLUDES_FT.'bootstrap.php';
header('Content-type: text/html; charset=utf-8');?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt" dir="ltr">
	<head>
		<?require(DIR_FT."header.php");?>

		<script type="text/javascript">
			$(document).ready(function(){
				jQuery("#jqGridTable")
					.jqGrid({
						url:'<?=DIR_CODIGOS_WS?>listar_codigos_tabela.php',
						datatype: "json",
						mtype: "post",
						width: 800,
						height: 490,
						colNames:['Código','Codigo de Barras', 'Tipo','Acções'],
						colModel:[
							{name:'id',index:'id', width:65},
							{name:'codigo_barras',index:'codigo_barras', width:200},
							{name:'Tipo',index:'tipo_codigo', width:220},
							{name:'accoes',index:'accoes', width:80, sortable:false}
						],
						rowNum:25,
						rowList:[10,25,50],
						//imgpath: gridimgpath,
						pager: jQuery('#pager2'),
						sortname: 'id',
						viewrecords: true,
						sortorder: "asc",
						caption:"Códigos de Barras"
					}).navGrid('#pager2',{edit:false,add:false,del:false});
			});
		</script>
	</head>
	<body>
	<?php require_once(DIR_MENUS_FT."menu.php");?>
	<div id="main_div"  style="">
		<div style="height: 15px;"></div>
		<table id="jqGridTable" class="scroll" cellpadding="0" cellspacing="0"></table>
		<div id="pager2" class="scroll" style="text-align:center;"></div>
	</div>
	<?require(DIR_FT."footer.php");?>
	</body>
</html>